export const UpFileType = {
  'image/jpeg': '.jpg',
  'image/gif': '.gif',
  'image/png': '.png',
  'text/xml': '.xml',
  'text/html': '.html',
  'text/plain': '.txt',
  'application/pdf': '.pdf'
}
export const imgType = ['.jpg', '.png', '.bmp', '.gif']

export const videoType = ['.mp4']
export const fileIcon = {
  def: 'file',
  '.pdf': 'pdf',
  '.xlsx': 'excel',
  '.xls': 'excel',
  '.docx': 'word',
  '.doc': 'word',
  '.wpf': 'word',
  '.mp4': 'mp4'
}
export const FileEnumDic = {
  fileType: 'FileType',
  dirStatus: 'FileDirStatus',
  fileSaveType: 'FileSaveType',
  filePower: 'FilePower'
}
export const DirStatus = {
  0: {
    text: '启用',
    value: 0
  },
  1: {
    text: '只读',
    value: 1
  },
  2: {
    text: '禁用',
    value: 2
  }
}
export const FilePower = {
  0: {
    text: '公共',
    value: 0
  },
  1: {
    text: '私有',
    value: 1
  },
  2: {
    text: '指定权限',
    value: 2
  },
  3: {
    text: '共享',
    value: 3
  }
}
export const FileType = {
  0: {
    text: '图片',
    value: 0
  },
  1: {
    text: '视频',
    value: 1
  },
  2: {
    text: '音频',
    value: 2
  },
  3: {
    text: '文件',
    value: 3
  },
  4: {
    text: '文档',
    value: 4
  }
}
export const FileSaveType = {
  0: {
    text: '本地',
    value: 0
  },
  1: {
    text: 'OOS',
    value: 1
  }
}
